﻿using MyEighthCSharp.Modes;

namespace MyEighthCSharp
{
    internal class Program
    {
        /// <summary>
        /// 维吉尼亚加密测试
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            //输入明文和关键词
            Console.Write("请输入明文：");
            string plaintext = Console.ReadLine();
            Console.Write("请输入关键词：");
            string key= Console.ReadLine();


            //加密
            Encoder myEncoder = new Encoder();
            myEncoder.PlainText = plaintext;
            myEncoder.Key = key;
            myEncoder.Encode();



            //输出密文
            Console.WriteLine( $"密文是{myEncoder.CipherText}" );
        }
    }
}